# -*- coding: utf-8 -*-
from google.appengine.ext import db
from google.appengine.ext import search


##################################################################################
#                                                                                #
#                       Models                                                   #
#                                                                                #
##################################################################################

class Equipo(db.Model):
  equipoId = db.IntegerProperty()
  name = db.StringProperty()
  slug = db.StringProperty()
  country = db.StringProperty()
  confederation = db.StringProperty()
  genrenumber = db.StringProperty()
  foundation = db.StringProperty()
  pubDate = db.DateTimeProperty(auto_now_add=True)

class Country(db.Model):
  countryId = db.IntegerProperty()
  name = db.StringProperty()
  slug = db.StringProperty()
  code = db.StringProperty()
  confederation = db.StringProperty()

class Link(db.Model):
  linkId = db.IntegerProperty()
  name = db.StringProperty()
  url = db.StringProperty()
  description = db.TextProperty()
  pubDate = db.DateTimeProperty(auto_now_add=True)

class CustomUser(db.Model):
  name = db.StringProperty()
  user = db.UserProperty()
  role = db.StringProperty()